/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author brokeguy
 */

import java.util.*;

public class Pile
{
    Stack<Card> pileStack;

    Pile()
    {
        pileStack = new Stack<Card>();
    }

    public void playCard( Card cardToBePlayed )
    {
        pileStack.push(cardToBePlayed);
    }

    public Card topCard()
    {
        if(!pileStack.empty())
        return pileStack.peek();
        else
            return new Card(0);

    }

    public void clearPile()
    {
        pileStack.clear();
    }



}//end class Pile
